package br.com.calculadora.activity;

import br.com.calculadora.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.menu);
		
		Button btnConfig = findButton(R.button.btConfig);
		btnConfig.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(), ConfigurationActivity.class));
			}
		});
		
		Button btnHistorico = findButton(R.button.btHistorico);
		btnHistorico.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(), HistoricoActivity.class));
			}
		});
		
		Button btnIniciar = findButton(R.button.btIniciar);
		btnIniciar.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(), ArmazenarDadosActivity.class));
			}
		});
	}
}
